import {http} from "..";
export const AccidentDimension = (date = { startTime: "2025-01-01 00:00:00", endTime: "2025-02-10 00:00:00" }) => http.get<any>({ url: "/heatMap/analysis", data: date });

export const GetPieChartsDatas = (url,ids = []) => http.post<any>({ url: `/heatMap/acdCountBy${url}`, data: ids });

export const PostReport = (data = { startTime: "2025-01-01 00:00:00", endTime: "2025-02-10 00:00:00" }) => http.post<any>({ url: `/heatMap/saveReport`, data: data });


export const GetReport = (reportId = '') => http.get<any>({ url: `/report/acdHeatReportInfo?reportId=${reportId}`,responseType: 'blob'});